/*
 * Edge.cpp
 *
 *  Created on: 18/11/2011
 *      Author: godinho
 */

#include <localview/Edge.h>

namespace localview {

Edge::Edge(Node* s, Node* t, std::string id) : mSource(s), mTarget(t) {
	mId = id;
	mMeanSpeed = 0;
	mNumLanes = 0;

    mFlush = 0;
    mQueue = 0;

}

Edge::~Edge() {
}

std::string Edge::getId() const {
	return mId;
}

Node *Edge::getSource() const {
	return mSource;
}

Node *Edge::getTarget() const {
	return mTarget;
}

void Edge::setFlush(int flush) {
	mFlush = flush;
}

void Edge::setQueue(int queue) {
	mQueue = queue;
}

void Edge::setMeanSpeed(float speed) {
	mMeanSpeed = speed;
}

void Edge::setNumLanes(int lanes) {
    mNumLanes = lanes;
}

int Edge::getFlush() {
	return mFlush;
}

int Edge::getQueue() {
	return mQueue;
}

float Edge::getMeanSpeed() {
	return mMeanSpeed;
}

int Edge::getNumLanes() {
    return mNumLanes;
}

}
